Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Utils CI #1867

Merged
merged 10 commits into from
May 27, 2024
Merged

Fix Utils CI #1867

merged 10 commits into from
May 27, 2024

Conversation

IlyasMoutawwakil
Copy link
Member

@IlyasMoutawwakil IlyasMoutawwakil commented May 22, 2024

What does this PR do?

Fixes tasks processor ci

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Who can review?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

runs-on: ${{ matrix.os }}
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also do you think we can reduce the model / dataset size used during testing https://github.com/huggingface/optimum/blob/main/tests/utils/test_dummpy_input_generators.py#L38 ? (using tiny random models for example)

Comment on lines 23 to 27
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
if: matrix.os == 'ubuntu-20.04'
with:
tool-cache: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -157,11 +160,15 @@ def _test_load_dataset(
path,
data_keys=data_keys,
only_keep_necessary_columns=only_keep_necessary_columns,
load_smallest_split=True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@IlyasMoutawwakil
Copy link
Member Author

still fails after two datasets 🥲

@IlyasMoutawwakil
Copy link
Member Author

reducing the number of samples works (it was the tensors written to disk memory and not the dataset splits)

@IlyasMoutawwakil IlyasMoutawwakil changed the title Fix utils ci Fix Utils CI May 25, 2024
Copy link
Contributor

@mht-sharma mht-sharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ilyas for the fixes

.github/workflows/test_utils.yml Outdated Show resolved Hide resolved
@echarlaix echarlaix merged commit ff0a0b3 into main May 27, 2024
36 of 48 checks passed
@echarlaix echarlaix deleted the fix-utils-ci branch May 27, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants